package com.honghh.repository;

import com.honghh.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Integer> {
    /**
     * 根据名称获取User对象
     * @param username
     * @return
     */
    User findByUsername(String username);
}
